import { defineStore } from "pinia";
import { reactive, ref } from "vue";

export const useCommonStore = defineStore("Common", () => {
  const routerData = ref<any>(null);
  const routerStack = reactive(new Map());
  const productionEnv = ref<boolean>(false);
  const requestHeader = reactive({});
  const tabbarIndex = ref(1);

  return {
    routerData,
    routerStack,
    productionEnv,
    requestHeader,
    tabbarIndex,
  };
});
